package com.fm.mediasoup.sdp;

public class Timing {
    public Integer start;
    public Integer stop;

    public Timing(Builder builder){
        start = builder.start;
        stop = builder.stop;
    }

    public Timing(){

    }
    @Override
    public String toString() {
        return "Timing{" +
                "start=" + start +
                ", stop=" + stop +
                '}';
    }

    public static class Builder{
        public Builder setStart(Integer start) {
            this.start = start;
            return this;
        }

        public Builder setStop(Integer stop) {
            this.stop = stop;
            return this;
        }

        private Integer start;
        private Integer stop;

        public Timing build(){
            return new Timing(this);
        }
    }
}
